import http from './interface'

// 获取房间信息
export const _getRoomList = (data) => {
    return http.request({
        url: 'ktSyncRoomTypes/list',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
/*获取房型详情*/
export const _getroomTypeInfo = (data) => {
    return http.request({
        url: 'ktSyncRoomTypes/getRoomTypeInfo',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
/*判断实名认证*/
export const _verified = (data) => {
    return http.request({
        url: 'member/judgeUser',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
/*修改用户信息*/
export const _editUserDetail = (data) => {
    return http.request({
        url: 'member/updateuser',
        // url: 'address/detail',
        method: 'POST',
        header:'h',
        data,
        // handle:true
    })
};
/*绑定用户手机*/
export const _bindPhone = (data) => {
    return http.request({
        url: 'member/bingingPhone',
        // url: 'address/detail',
        method: 'POST',
        header:'h',
        data,
        // handle:true
    })
};
/*获取短信验证码*/
//获取手机验证码 type参数1登录验证，2，修改验证3，注册验证，4，信息变更
export const _msgCode = (data) => {
    return http.request({
        url: 'member/getAuthCode',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};

/*用户积分*/
export const _userIntegral = (data) => {
    return http.request({
        url: 'member/getIntegral',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
/*积分兑换商品列表*/
export const _integralToPro = (data) => {
    return http.request({
        url: 'pms/integeralProduct',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
/*积分兑换优惠卷列表*/
export const _integralToCoupon = (data) => {
    return http.request({
        url: 'member/coupon/integrationCoupon',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
/*历史积分记录*/
export const _historyIntegral = (data) => {
    return http.request({
        url: 'member/getHistoryIntegral',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
/*积分兑换商品优惠券记录*/
export const _IntegraltoProc = (data) => {
    return http.request({
        url: 'pms/userProductCoupon',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
/*用户优惠卷管理*/
export const _userCouponManage = (data) => {
    return http.request({
        url: 'member/coupon/list',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
/*优惠券中心*/
export const _allCoupon = (data) => {
    return http.request({
        url: 'member/coupon/alllist',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
/*用户领取优惠卷*/
export const _addCoupon = (data) => {
    return http.request({
        url: 'member/coupon/add',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
/*用户评价*/
export const _userAppraise = (data) => {
    return http.request({
        url: 'member/getEvaluateList',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
// 默认全部导出  import api from '@/common/vmeitime-http/'
// export default {
//     _userCoupon,
//     _userDetail
// }